import { createApp } from 'vue'
import App from './App.vue'
import router from './router/index'
import TypeNav from './components/typenav/index.vue'
import Pagination from './components/Pagination/index.vue'
import store from './store'
import '../src/mock/mockServe'
import 'swiper/css/swiper.css'
import {ElMessageBox } from 'element-plus'
// 全局引入Element UI
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'
const app=createApp(App)
// 注册全局组件
app.config.globalProperties.$messageBox=ElMessageBox
app.component("TypeNav",TypeNav)
app.component(Pagination.name,Pagination)
// 使用路由--必须在挂载之前
app.use(router)
// 使用vuex仓库
app.use(store)
app.mount('#app')

